<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div id="app">
        <h1>请选择您喜欢的专栏</h1>
        <div v-for="(item,index) in likeList" :key="index">
            <input type="checkbox" v-model="checkedList" :value="item">{{item}}</input>
        </div>
        <ul>
            <li v-for="(item,index) in checkedList" :key="index">{{item}}</li>
        </ul>
    </div>
    <script src="./vue.js"></script>
    <script>
        const app = new Vue({
            el: '#app',
            data:{
                likeList:["科幻", "喜剧", "动漫", "冒险", "科技", "军事", "娱乐", "奇闻"],
                checkedList:[]
            }
        })
    </script>
</body>
</html>